package com.yundasys.lab10designpattern.adapter;

import com.yundasys.lab10designpattern.adapter.controller.HttpController;

/**
 * @author jiangta
 * @version 1.0
 * @date 2021/5/14 11:31 上午
 */
public class HttpHandlerAdapter implements HandlerAdapter {
    @Override
    public boolean supports(Object handler) {
        return (handler instanceof HttpController);
    }

    @Override
    public void handler(Object handler) {
        ((HttpController)handler).doHttpHandler();
    }
}
